<template>
  <div class="h5-wrapper">
    <router-view></router-view>
    <van-tabbar v-model="active" route>
      <van-tabbar-item to="/article" name="home" icon="wap-home">首页</van-tabbar-item>
      <van-tabbar-item to="/support" name="search" icon="chat-o">问答</van-tabbar-item>
      <van-tabbar-item to="/video" name="friends" icon="video-o">视频</van-tabbar-item>
      <van-tabbar-item to="/user" name="setting" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  // 组件名(如果没有配置 name，才会找文件名作为组件名)
  name: 'LayoutPage',
  data () {
    return {
      active: 'home'
    }
  }
}
</script>

<style lang="less" scoped>

</style>
